#coding = utf-8

import p_data as pd
from db import *
import utils
con = utils.get_db_connector()

code = '600332'

start_day = '2007-09-18'
exdays = exday.get_exdays_after(con, code, start_day)

bms = []

for d in exdays:
    
    data = pd.get_r_by_threshold(con, code, d)
    bms.append(data)

qw =[ [i[0], i[1]] for i in bms ]


# 开始画条形图
from pylab import *


